package com.front.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.front.entity.TbUserAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xyw
 * @since 2023-08-10
 */
public interface TbUserAddressMapper extends BaseMapper<TbUserAddress> {

    /**
     * 修改所有数据
     *
     * @param addressId 实体对象
     * @return 修改结果
     */
    int updateDefault( Integer addressId);

    IPage<TbUserAddress> queryAddressCar(Page<TbUserAddress> page, QueryWrapper queryWrapper);
}
